package com.abaaba.project2.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
public class AdminGoodsAddShoppingInformationOfGoosListTwoVO {

    /**
     * errno : 0
     * data : {"categoryIds":[1005001,1005007],"goods":{"id":1023003,"goodsSn":"1023003","name":"100年传世珐琅锅 全家系列","categoryId":1005007,"brandId":0,"gallery":["http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg"],"keywords":"","brief":"特质铸铁，大容量全家共享","isOnSale":true,"sortOrder":3,"picUrl":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","shareUrl":"","isNew":false,"isHot":false,"unit":"只","counterPrice":418,"retailPrice":398,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false,"detail":""},"attributes":[],"specifications":[{"id":32,"goodsId":1023003,"specification":"规格","value":"标准","picUrl":"","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}],"products":[{"id":33,"goodsId":1023003,"specifications":["标准"],"price":398,"number":98,"url":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","addTime":"2018-02-01 00:00:00","updateTime":"2020-04-27 22:04:40","deleted":false}]}
     * errmsg : 成功
     */

    private int errno;
    private DataBean data;
    private String errmsg;

    @Data
    @AllArgsConstructor
    public static class DataBean {
        /**
         * categoryIds : [1005001,1005007]
         * goods : {"id":1023003,"goodsSn":"1023003","name":"100年传世珐琅锅 全家系列","categoryId":1005007,"brandId":0,"gallery":["http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg"],"keywords":"","brief":"特质铸铁，大容量全家共享","isOnSale":true,"sortOrder":3,"picUrl":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","shareUrl":"","isNew":false,"isHot":false,"unit":"只","counterPrice":418,"retailPrice":398,"addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false,"detail":""}
         * attributes : []
         * specifications : [{"id":32,"goodsId":1023003,"specification":"规格","value":"标准","picUrl":"","addTime":"2018-02-01 00:00:00","updateTime":"2018-02-01 00:00:00","deleted":false}]
         * products : [{"id":33,"goodsId":1023003,"specifications":["标准"],"price":398,"number":98,"url":"http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png","addTime":"2018-02-01 00:00:00","updateTime":"2020-04-27 22:04:40","deleted":false}]
         */

        private GoodsBean goods;
        private Integer[] categoryIds;
        private List<AttributesBean> attributes;
        private List<SpecificationsBean> specifications;
        private List<ProductsBean> products;

        public DataBean() {

        }

        @Data
        @AllArgsConstructor
        public static class GoodsBean {
            /**
             * id : 1023003
             * goodsSn : 1023003
             * name : 100年传世珐琅锅 全家系列
             * categoryId : 1005007
             * brandId : 0
             * gallery : ["http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg","http://yanxuan.nosdn.127.net/9c9f47d3c321b96ad9c8d658ff4249e1.jpg"]
             * keywords :
             * brief : 特质铸铁，大容量全家共享
             * isOnSale : true
             * sortOrder : 3
             * picUrl : http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png
             * shareUrl :
             * isNew : false
             * isHot : false
             * unit : 只
             * counterPrice : 418
             * retailPrice : 398
             * addTime : 2018-02-01 00:00:00
             * updateTime : 2018-02-01 00:00:00
             * deleted : false
             * detail :
             */

            private Integer id;
            private String goodsSn;
            private String name;
            private Integer categoryId;
            private Integer brandId;
            private String keywords;
            private String brief;
            private Boolean isOnSale;
            private int sortOrder;
            private String picUrl;
            private String shareUrl;
            private Boolean isNew;
            private Boolean isHot;
            private String unit;
            private BigDecimal counterPrice;
            private BigDecimal retailPrice;
            private Date addTime;
            private Date updateTime;
            private boolean deleted;
            private String detail;
            private String[] gallery;

        }
        @Data
        @AllArgsConstructor
        public static class SpecificationsBean {
            /**
             * id : 32
             * goodsId : 1023003
             * specification : 规格
             * value : 标准
             * picUrl :
             * addTime : 2018-02-01 00:00:00
             * updateTime : 2018-02-01 00:00:00
             * deleted : false
             */

            private int id;
            private int goodsId;
            private String specification;
            private String value;
            private String picUrl;
            private Date addTime;
            private Date updateTime;
            private boolean deleted;

        }
        @Data
        public static class ProductsBean {
            /**
             * id : 33
             * goodsId : 1023003
             * specifications : ["标准"]
             * price : 398
             * number : 98
             * url : http://yanxuan.nosdn.127.net/c39d54c06a71b4b61b6092a0d31f2335.png
             * addTime : 2018-02-01 00:00:00
             * updateTime : 2020-04-27 22:04:40
             * deleted : false
             */

            private Integer id;
            private Integer goodsId;
            private BigDecimal price;
            private Integer number;
            private String url;
            private Date addTime;
            private Date updateTime;
            private boolean deleted;
            private String[] specifications;

            public ProductsBean(int id, int goodsId, BigDecimal price, int number, String url, Date addTime, Date updateTime, boolean deleted, String[] specifications) {
                this.id = id;
                this.goodsId = goodsId;
                this.price = price;
                this.number = number;
                this.url = url;
                this.addTime = addTime;
                this.updateTime = updateTime;
                this.deleted = deleted;
                this.specifications = specifications;
            }

            public ProductsBean() {
            }
        }
        @Data
        public static class AttributesBean{
            private String attribute;
            private String value;

            public AttributesBean(String attribute, String value) {
                this.attribute = attribute;
                this.value = value;
            }

            public AttributesBean() {
            }
        }
    }
}
